import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import vitePluginImp from 'vite-plugin-imp'

// https://vite.dev/config/
export default defineConfig({
  plugins: [react(),vitePluginImp({
    libList: [
      {
        libName: '@nutui/nutui-react',
        style: (name) => {
          return `@nutui/nutui-react/dist/esm/${name}/style/css`
        },
        replaceOldImport: false,
        camel2DashComponentName: false,
      }
    ]
  })],
})
